#include "IRole.h"
#include "User.h"
#include "Monster.h"
#include "RoleMgr.h"
#include "SimulateAtkEvent.h"
#include <Windows.h>

CRoleMgr* pRoleMgr = NULL;

int main()
{
	pRoleMgr = new CRoleMgr;
	CSimulateAtkEvent SimuEvent;
	SimuEvent.LoadAtkEvent();

	pRoleMgr->AddUser(0, 1);
	pRoleMgr->AddUser(1, 2);
	pRoleMgr->AddUser(2, 3);

	pRoleMgr->AddMonster(104);

	do 
	{
		SimuEvent.OnTimer();
		pRoleMgr->OnTimer();

		Sleep(50);
	} while (1);


	delete pRoleMgr;

	return 0;
}

